package com.wbcs.system.commoninterface;

import com.wbcs.config.component.application.report.ReportBean;
import com.wbcs.system.ReportRequest;

public class DefaultReportPersonalizePersistenceImpl implements IReportPersonalizePersistence
{
    public String loadColOrderData(ReportRequest rrequest,ReportBean rbean)
    {
        return (String)rrequest.getRequest().getSession().getAttribute(rbean.getPath()+"_colorderdata");
    }

    public void storeColOrderData(ReportRequest rrequest,ReportBean rbean,String colOrder)
    {
        rrequest.getRequest().getSession().setAttribute(rbean.getPath()+"_colorderdata",colOrder);
    }

    public String loadColSelectedData(ReportRequest rrequest,ReportBean rbean)
    {
        return (String)rrequest.getRequest().getSession().getAttribute(rbean.getPath()+"_colselecteddata");
    }

    public void storeColSelectedData(ReportRequest rrequest,ReportBean rbean,String colSelectedData)
    {
        rrequest.getRequest().getSession().setAttribute(rbean.getPath()+"_colselecteddata",colSelectedData);
    }

    public String loadOrderByCol(ReportRequest rrequest,ReportBean rbean)
    {
        return (String)rrequest.getRequest().getSession().getAttribute(rbean.getPath()+"_orderbycol");
    }

    public void storeOrderByCol(ReportRequest rrequest,ReportBean rbean,String orderByCol)
    {
        rrequest.getRequest().getSession().setAttribute(rbean.getPath()+"_orderbycol",orderByCol);
    }    
}
